package com.nsl.Poker_Java;
//Demo入口
public class Poker_Demo {
    public static void main(String[] args) {
        //创建一副牌
        PokerManager manager = new PokerManager();
        //从一副牌中随机抽两张牌
        Poker poker1 = manager.getPoker();
        Poker poker2 = manager.getPoker();

        if (poker1.compare(poker2)) {
            System.out.println(poker1.numberObj.number + poker1.suitObj.suit +
                    ">" + poker2.numberObj.number + poker2.suitObj.suit);
        } else {
            System.out.println(
                    poker1.numberObj.number + poker1.suitObj.suit +
                            "<" + poker2.numberObj.number + poker2.suitObj.suit
            );
        }

    }
}
